package com.linkgie.galaxyframework.utils;

/**
 * 分页参数；
 * 
 * @author huanghaiquan
 *
 */
public class PagingArgs implements PageNo {

	private long pageIndex;

	private long pageSize;

	public PagingArgs() {
	}

	public PagingArgs(long pageIndex, long pageSize) {
		this.pageIndex = pageIndex;
		this.pageSize = pageSize;
	}

	/**
	 * 页码；
	 * 
	 * 首页为 0 ；
	 * 
	 * @return
	 */
	public long getPageIndex() {
		return pageIndex;
	}

	/**
	 * 每页的记录数；
	 * 
	 * @return
	 */
	public long getPageSize() {
		return pageSize;
	}

	/**
	 * @param pageIndex the pageIndex to set
	 */
	public void setPageIndex(long pageIndex) {
		this.pageIndex = pageIndex;
	}

	/**
	 * @param pageSize the pageSize to set
	 */
	public void setPageSize(long pageSize) {
		this.pageSize = pageSize;
	}

}
